import request from '@/utils/request'

export function addRole(data) {
  return request.post('/role', data)
}

export function fetchList(query) {
  return request({
    url: '/role/list',
    method: 'get',
    params: query
  })
}

export function deleteRole(id) {
  return request.delete(`/role/${id}`)
}
